<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>JavaScript BigInt</title>
</head>
<body>
<h2>创建 BigInt</h2>
<p>可以在整数末尾添加 n，或调用 BigInt() 函数：</p>

<h2>Integer 和 BigInt</h2>

<p id="demo"></p>

<script>
  let x = 9999999999999999;
  let y = BigInt("9999999999999999");
  let z = 1234567890123456789012345n;
  let t = BigInt(1234567890123456789012345)
  document.getElementById("demo").innerHTML = x + "<br>" + y + "<br>" +z+ "<br>" +t;
</script>

</body>
</html>

<!--
输出结果：
10000000000000000
9999999999999999
123456789012345678901234567890
123456789012345678901234567890
-->